﻿/***********************************************************************
 * <copyright file="IItemTransaction.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   LinhMC
 * Email:    linhmc@buca.vn
 * Website:
 * Create Date: Tuesday, October 22, 2013
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using System.Collections.Generic;
using BusinessObjects.BussinessVoucher;

namespace DataObjects.StandartInterfaces.Voucher 
{
    /// <summary>
    /// Defines methods to access ItemTransaction
    /// </summary>
    /// <remarks>
    /// This is a database-independent interface. Implementations are database specific
    /// </remarks>
    public interface IItemTransactionDao
    {

        
        /// <summary>
        /// Gets the paged.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="refTypeId">The reference type identifier.</param>
        /// <param name="currentPage">The current page.</param>
        /// <returns></returns>
        List<ItemTransaction> GetPaged(int unitId,int refTypeId, int currentPage);

        /// <summary>
        /// Gets the size of the page.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="refTypeId">The reference type identifier.</param>
        /// <returns></returns>
        int GetPageSize(int unitId, int refTypeId);



        /// <summary>
        /// Gets the item transaction.
        /// </summary>
        /// <param name="itemTransactionId">The reference identifier.</param>
        /// <returns></returns>
        ItemTransaction GetItemTransaction(long itemTransactionId); 


        /// <summary>
        /// Inserts the item transaction.
        /// </summary>
        /// <param name="itemTransaction">The item transaction.</param>
        /// <returns></returns>
        string InsertItemTransaction(ItemTransaction itemTransaction);


        /// <summary>
        /// Updates the item transaction.
        /// </summary>
        /// <param name="itemTransaction">The item transaction.</param>
        /// <returns></returns>
        string UpdateItemTransaction(ItemTransaction itemTransaction);


        /// <summary>
        /// Deletes the item transaction.
        /// </summary>
        /// <param name="itemTransaction">The item transaction.</param>
        /// <returns></returns>
        string DeleteItemTransaction(ItemTransaction itemTransaction);

        /// <summary>
        /// Gets the sequence.
        /// </summary>
        /// <returns></returns>
        long GetSequence();
    }
}
